package chapter1104;

public class BasePlusSalesEmployee extends SalesEmployee{
    private double baseSalary;

    public BasePlusSalesEmployee(String name, int birthdayMonth, int saleRate, double royaltyRate, double baseSalary) {
        super(name, birthdayMonth, saleRate, royaltyRate);
        this.baseSalary = baseSalary;
    }

    @Override
    public double getSalary(int month) {
        return super.getSalary(month) + baseSalary;
    }


}
